import request from '@/utils/request'

// 查询分类配置列表
export function listPercent(query) {
  return request({
    url: '/system/percent/list',
    method: 'get',
    params: query
  })
}

// 查询分类配置详细
export function getPercent(id) {
  return request({
    url: '/system/percent/' + id,
    method: 'get'
  })
}

// 新增分类配置
export function addPercent(data) {
  return request({
    url: '/system/percent',
    method: 'post',
    data: data
  })
}

// 修改分类配置
export function updatePercent(data) {
  return request({
    url: '/system/percent',
    method: 'put',
    data: data
  })
}

// 删除分类配置
export function delPercent(id) {
  return request({
    url: '/system/percent/' + id,
    method: 'delete'
  })
}

// 导出分类配置
export function exportPercent(query) {
  return request({
    url: '/system/percent/export',
    method: 'get',
    params: query
  })
}